import {http} from "@/interceptor/luch-request/index.js"

// 查看年级班级列表
export const gradeClassStudentTree = (data) => {
	return http.get("api/admin/grade/v1/gradeClassStudentTree", {
		data: data
	});
}
// 发表朋友圈
export const saveCircleFriend = (data) => {
    return http.post("api/admin/circleFriend/v1/saveCircleFriend", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 查看班级圈
export const listTable = (data) => {
	return http.get("api/admin/circleFriend/v1/listTable", {
		data: data
	});
}
// 删除
 export const deleteCircleFriend = (id) => {
  	return http.delete("api/admin/circleFriend/v1/delete/"+id, {
  		header:{
  			"content-type": "application/x-www-form-urlencoded"
  		}
  	});
 }
// 点赞/取消点赞 1点赞0取消点赞
export const giveAlike = (data) => {
    return http.put("api/admin/circleUserThumbUp/v1/giveAlike", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

export const saveCircleReply = (data) => {
    return http.post("api/admin/circleReply/v1/saveCircleReply", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}